<div class="new_mn">
        	<b class="spbg2 corner tl"></b>
    		<b class="spbg2 corner tr"></b>
    		<b class="spbg2 corner bl"></b>
    		<b class="spbg2 corner br"></b>
    		<div class="titlebar-smenu clearfix" style="margin-bottom:20px;">
    			<a href="">All applies</a>
    		</div>
    		
    		<div style="margin-left:10px;">
    		<form action="adminb-am-index">
					<select name="type">
						<option value="5" <?php if ($this->type == 5) {echo 'selected';}?>>All</option>
						<option value="0" <?php if ($this->type == 0) {echo 'selected';}?>>Processing</option>
						<option value="1" <?php if ($this->type == 1) {echo 'selected';}?>>Approved</option>
						<option value="2" <?php if ($this->type == 2) {echo 'selected';}?>>Refused</option>
					</select>
					<input type="submit" value="submit"></input><span style="padding-right:40px;float:right;">My tracking code:/?relatecode=<?php echo $this->userinfo->relatecode;?></span>
				</form>
			
    		</div>
				<br/><br/>
				<table width="98%" border="0" cellpadding="0" cellspacing="0" style="margin-left:10px;">
					<tr>
						<td height="20" width="10%">
							<strong>Approved:</strong>
						</td>
						<td width="20%">
							<strong>$<?php echo $this->success;?></strong>
						</td>						
						<td width="10%">
							<strong>Refused:</strong>
						</td>
						<td width="20%">
							<strong>$<?php echo $this->refuse;?></strong>
						</td>	
						<td width="10%">
							<strong>Processing:</strong>
						</td>
						<td width="20%">
							<strong>$<?php echo $this->inProcess;?></strong>
						</td>
															
					</tr>
							
				</table>
				<br>
				<table width="98%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CEE7FF" style="border-collapse:collapse;margin-left:10px;">
					<tr>
						<td height="20" width="20%" class="bbgg" align="center">
							<strong>Paypal account</strong>
						</td>
						<td width="20%" class="bbgg" align="center">
							<strong>Money</strong>
						</td>						
						<td width="20%" class="bbgg" align="center">
							<strong>Time</strong>
						</td>
						<td width="20%" class="bbgg" align="center">
							<strong>Status</strong>
						</td>
						
					</tr>		
					<? foreach($this->cashList as $v):?>						
					<tr bgcolor="#FFFFFF">
						<td height="20" align="center" valign="middle">
							<?php echo $v->paypal;?>
						</td>
						<td align="center">
							$<?php echo $v->cash;?>
						</td>						
						<td align="center">
							<?php echo date('Y-m-d H:i:s', $v->add_time);?>
						</td>
						<td align="center">
							<?php 
								switch($v->statu) {
									case '0':
										echo 'Waiting';
										break;
									case '1':
										echo 'Approved';
										break;
									case '2':
										echo 'Refused';
										break;
								}
							?>
						</td>
						
						
					</tr>
					<? endforeach;?>													
				</table>
				<br />
				
				<div class="factory_page"><?php echo $this->pageLink;?></div>
				<div style="clear: both"></div>
			

</div>